<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	
<script type="text/javascript">
	//页面加载后完成
	$(function() {

		$.ajax({
			url : "http://localhost:8081/isLogin.aspx",
			type : "get",
			dataType : "jsonp",
			success : function(data) {
				//alert(data);
				
				if(data!=null)
				{
					$("#login").hide();
					$("#regist").hide();
					$("#usernameSpan").html(data);
				}
				else
				{
					$("#logout").hide();
					$("#myOrder").hide();
				}
				
			}
		});

	});

	//显示登录页面
	function login() {
		window.location = "http://localhost:8081/login.aspx?returnUrl="
				+ encodeURIComponent(window.location);
	}
</script>
<div id="shortcut-2013">
	<div class="w">
		<ul class="fl lh">
			<li class="fore1 ld" clstag="homepage|keycount|home2013|01a"><b></b>
				<a href="javascript:addToFavorite()">收藏新巴巴</a></li>
		</ul>
		<ul class="fr lh">
			<li class="fore1" id="loginbar"
				clstag="homepage|keycount|home2013|01b">您好！欢迎
				<span id="usernameSpan"></span>
				来到新巴巴运动网！ <a
				href="javascript:;" id="login" onclick="login()">[登录]</a>&nbsp; <a
				href="javascript:;"	id="regist" onclick="regist()">[免费注册]</a> <a
				href="javascript:;" id="logout" onclick="logout()">[退出]</a> <a
				href="javascript:;"	id="myOrder" onclick="myOrder()">我的订单</a>
			</li>
			<li class="fore2-1 ld" id="jd-vip"><s></s> <a target="_blank"
				rel="nofollow" href="http://vip.jd.com">会员俱乐部</a></li>
			<li class="fore3 ld menu" id="app-jd" data-widget="dropdown"
				clstag="homepage|keycount|home2013|01d"><s></s><i></i><span
				class="outline"></span><span class="blank"></span> <a
				href="http://app.jd.com/" target="_blank">手机新巴巴</a><b></b></li>
			<li class="fore4 ld menu" id="biz-service" data-widget="dropdown"
				clstag="homepage|keycount|home2013|01e"><s></s> <span
				class="outline"></span> <span class="blank"></span> 客户服务 <b></b>
				<div class="dd">
					<div>
						<a href="http://help.jd.com/index.html" target="_blank">帮助中心</a>
					</div>
					<div>
						<a href="http://myjd.jd.com/repair/orderlist.action"
							target="_blank" rel="nofollow">售后服务</a>
					</div>
					<div>
						<a href="http://chat.jd.com/jdchat/custom.action" target="_blank"
							rel="nofollow">在线客服</a>
					</div>
					<div>
						<a href="http://myjd.jd.com/opinion/list.action" target="_blank"
							rel="nofollow">投诉中心</a>
					</div>
					<div>
						<a href="http://www.jd.com/contact/service.html" target="_blank">客服邮箱</a>
					</div>
				</div></li>
			<li class="fore5 ld menu" id="site-nav" data-widget="dropdown"
				clstag="homepage|keycount|home2013|01f"><s></s> <span
				class="outline"></span> <span class="blank"></span> 网站导航 <b></b>
				<div class="dd lh">
					<dl class="item fore1">
						<dt>特色栏目</dt>
						<dd>
							<div>
								<a target="_blank" href="http://mobile.jd.com/index.do">新巴巴通信</a>
							</div>
							<div>
								<a target="_blank" href="http://jdstar.jd.com/">校园之星</a>
							</div>
							<div>
								<a target="_blank" href="http://my.jd.com/personal/guess.html">为我推荐</a>
							</div>
							<div>
								<a target="_blank" href="http://shipingou.jd.com/">视频购物</a>
							</div>
							<div>
								<a target="_blank" href="http://club.jd.com/">新巴巴社区</a>
							</div>
							<div>
								<a target="_blank" href="http://read.jd.com/">在线读书</a>
							</div>
							<div>
								<a target="_blank" href="http://diy.jd.com/">装机大师</a>
							</div>
							<div>
								<a target="_blank"
									href="http://giftcard.jd.com/market/index.action">新巴巴E卡</a>
							</div>
							<div>
								<a target="_blank" href="http://channel.jd.com/jiazhuang.html">家装城</a>
							</div>
							<div>
								<a target="_blank" href="http://dapeigou.jd.com/">搭配购</a>
							</div>
							<div>
								<a target="_blank" href="http://xihuan.jd.com/">我喜欢</a>
							</div>
						</dd>
					</dl>
					<dl class="item fore2">
						<dt>企业服务</dt>
						<dd>
							<div>
								<a target="_blank" href="http://giftcard.jd.com/company/index">企业客户</a>
							</div>
							<div>
								<a target="_blank" href="http://sale.jd.com/p10997.html">办公直通车</a>
							</div>
						</dd>
					</dl>
					<dl class="item fore3">
						<dt>旗下网站</dt>
						<dd>
							<div>
								<a target="_blank" href="http://en.jd.com/">English Site</a>
							</div>
						</dd>
					</dl>
				</div></li>
		</ul>
		<span class="clr"></span>
	</div>
</div>